﻿#ifndef DOWNLOADFILERESULTCMD_H
#define DOWNLOADFILERESULTCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/CloudProtocol.h"

class DownloadFileResultCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::DownloadFileResult};
    Q_INVOKABLE explicit DownloadFileResultCmd(QObject *parent = 0);
    Package toPackage();
    void unPackage(Package package);

    int result() const;
    void setResult(int result);

private:
    int m_result;
};

#endif // DOWNLOADFILERESULTCMD_H
